﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.implement;
using NUnit.Framework;
using Services.Implement;

namespace UnitTest.Services
{
    [TestFixture]
    class TestWeixin
    {
        [Test]
        public void TestWeixinService()
        {
            WeixinAuthService wxService=new WeixinAuthService();
            string code = "0144762ea97a774b2b3832dd8cc94a5d";
            string token = "";
            string openId = "";
            string errocode = "";
            string errMsg = "";

            bool flag=wxService.GetToken(code, out token, out openId, out errocode, out errMsg);

            WeiXinUser str = wxService.GetUser(token, openId, out errocode, out errMsg);

        }
    }
}
